home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !preview / RCS / h / web2c < prev   
Encoding:
Text File  |  1990-03-03  |  1.5 KB  |  91 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    gtoal:1.2;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     91.03.02.14.00.11;  author gtoal;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     91.03.02.13.57.12;  author gtoal;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @Initial release
  22. @
  23.  
  24.  
  25. 1.2
  26. log
  27. @IAY's update
  28. @
  29. text
  30. @/*
  31.  * Main include file for tangle etc. in C
  32.  *
  33.  * Tim Morgan  2/11/88
  34.  */
  35.  
  36. #include <stdio.h>
  37. #include "site.h"
  38.  
  39. /*
  40.  * Global routines implemented as macros, plus some type coercion stuff.
  41.  */
  42.  
  43. #define    odd(x)        ((x) % 2)
  44. #define    putbyte(x,f)    putc(((x)&255), f)
  45. #define    round(x)    zround((double)(x))
  46. #define incr(x)        ++x
  47. #define    decr(x)        --x
  48. #define    trunc(x)    ( (integer) (x) )
  49. #define    readln(f)    while (!feof(f) && getc(f) != '\n')
  50. #define    read(f, b)    b = getc(f)
  51. #define    input3ints(a,b,c)    zinput_3ints(&a, &b, &c)
  52. #define zfseek(f,n,w)    (void) fseek(f, (long) n, (int) w)
  53. #define eof(f)        feof(f)
  54. #define    abs(x)        ((x>=0)?(x):(-(x)))
  55. #define    fabs(x)        ((x>=0.0)?(x):(-(x)))
  56. #define    Fputs(stream, s)    (void) fputs(s, stream)
  57. #define rewrite(f,n)    f = openf(n+1, "w")
  58. #define    reset(f,n)    f = openf(n+1, "r")
  59. #define flush(f)    (void) fflush(f)
  60. #define    true        1
  61. #define    false        0
  62. #define    chr(x)        (x)
  63. #define    ord(x)        (x)
  64. #define    vgetc(f)    (void) getc(f)
  65. #define    uexit(x)    exit(x)
  66.  
  67. FILE *openf();
  68.  
  69. /*
  70.  * Global Types
  71.  */
  72. typedef FILE    *text, *file_ptr;
  73. typedef char    *ccharpointer;
  74.  
  75. /*
  76.  * Global Data and Datastructures
  77.  */
  78.  
  79. extern integer argc;
  80. extern integer zround();
  81. extern integer inputint();
  82. @
  83.  
  84.  
  85. 1.1
  86. log
  87. @Initial revision
  88. @
  89. text
  90. @@
  91.